package Day2025_02_22;

public class Test_MyTimer {
    public static void main(String[] args) throws InterruptedException {
        MyTimer myTimer = new MyTimer();
        myTimer.schedule(() -> {
            System.out.println("起床");
        }, 0);

        myTimer.schedule(() -> {
            System.out.println("洗漱");
        }, 0);

        myTimer.schedule(() -> {
            System.out.println("吃饭");
        }, 0);

        myTimer.schedule(() -> {
            System.out.println("上学");
        }, 1000);

        myTimer.schedule(() -> {
            System.out.println("打代码");
        }, 2000);
    }
}
